import type { IForm, IFormItem } from '@/base-ui/form'
const formItems: IFormItem[] = [
  {
    type: 'input',
    key: 'name',
    label: '商品名称',
    value: '',
    placeholder: '请输入商品名称'
  },
  {
    type: 'input',
    key: 'id',
    label: '商品ID',
    value: '',
    placeholder: '请输入商品ID'
  },
  {
    type: 'input',
    label: '原价',
    key: 'oldPrice',
    value: '',
    placeholder: '请输入原价'
  },
  {
    type: 'input',
    label: '现价格',
    key: 'newPrice',
    value: '',
    placeholder: '请输入现价格'
  },
  {
    type: 'select',
    label: '商品状态',
    key: 'status',
    value: 1,
    placeholder: '请选择商品状态',
    options: [
      { value: 1, label: '启用' },
      { value: 0, label: '禁用' }
    ]
  },
  {
    type: 'date',
    label: '创建时间',
    key: 'createAt',
    value: '',
    props: {
      startPlaceholder: '开始时间',
      endPlaceholder: '结束时间',
      placeholder: '请输入输入时间'
    }
  }
]
export const SearchFormConfig: IForm = {
  formItems
}
